package com.ih.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ih.pojo.Salary;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;
@Repository
public interface SalaryMapper extends BaseMapper<Salary> {
    /**
     * 计算所有工资  带分页 带时间条件查询
     * @param startDate  开始时间
     * @param endDate  结束时间
     * @return
     */
    List<Salary> calcSalaryByCondition(@Param("startDate")String startDate, @Param("endDate")String endDate);

    /**
     * 查询没送过水的
     * @return
     */
    List<Salary>  IsNullWorker();

}
